<#include "/view/templates/ace/ace-inc.ftl">
<@input url="${base}/yihang/customer/save">
    <input type="hidden" name="id" value="${customer?exists?then(customer.id?c, '')}"/>
       <@formgroup title='姓名'><input type="text" name="name" value="${customer?exists?then(customer.name, '')}"/></@formgroup>
       <@formgroup title='客户类型'>
       <@radiobox name="status" value="${(customer?exists && customer.status?exists)?then(customer.status, '')}" list=Constants.GLOBAL_CUSTOMER_STATUS />
       </@formgroup>
       <@formgroup title='意向车型'><input type="text" name="destinationCar" value="${customer?exists?then(customer.destinationCar, '')}"/></@formgroup>
       <@formgroup title='身份证号'><input type="text" name="idCard" value="${customer?exists?then(customer.idCard, '')}"/></@formgroup>
       <@formgroup title='手机号'><input type="text" name="phone" value="${customer?exists?then(customer.phone, '')}"/></@formgroup>
       <@formgroup title='备注'><textarea name="remark" class='tinyeditor' rows="2" cols="40">${customer?exists?then(customer.remark, '')}</textarea></@formgroup>
</@input>